
const { init } = require('./src/lib/oss')
const fs = require('fs')
const { uuid } = require('uuidv4');

let { ossConfig } = require('./src/private/config')
let ossClient = init(ossConfig)

fs.readFile("test.jpg", function (err, data) {
  if (err) throw err;
  ossClient.put(data, uuid() + '.jpg').then(result => {
    console.dir(result)
    // 'http://zhilizhili.com/' + result.name
  })
});
